<!--#include("_tool_header.html")-->
<!--%import("css/pagination.css",optimized=false)-->

<!-- Content -->
<div id="content">
    <!-- contentHeader -->
    <div class="dashboardHeader">
        <h3 class="h3"><span class="icon products"></span>{$lang->shop_second_menus[1]['dispShopToolManageProducts']}</h3>
    </div>
    <!-- /contentHeader -->
    <div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
        <p>{$XE_VALIDATOR_MESSAGE}</p>
    </div>
    <!-- contentNavigation -->
    <div class="contentNavigation">
        <ul class="sortDefault">
            <li><a href="{getUrl('act','dispShopToolAddProduct')}">{$lang->add_simple_product}</a></li>
            <li><a href="{getUrl('act','dispShopToolAddConfigurableProduct')}">{$lang->add_configurable_product}</a></li>
            <li><a href="{getUrl('act','dispShopToolAddProduct', 'product_type', 'downloadable')}">{$lang->add_downloadable_product}</a></li>
            <li><a href="{getUrl('act','dispShopToolImportProducts')}">{$lang->import_products}</a></li>
            <li><a href="{getUrl('act','procShopToolExportProducts')}">{$lang->export_products}</a></li>
        </ul>
    </div>
    <!-- /contentNavigation -->

    <!-- listHeader -->
    <div class="listHeader">
        <p class="info">
            <strong>{$productsCount?$productsCount:0}</strong> {$lang->products_in_shop}
            <span cond="($search||$category_srl)&&$productsCount">, <strong>{$page_navigation->total_count}</strong> {$lang->products_matched_criteria}</span>
        </p>
        <fieldset class="search">
            <legend>{$lang->cmd_search}</legend>
            <form action="./">
                <input type="hidden" name="published" value="{$published}" />
                <input type="hidden" name="act" value="procShopToolManageProducts" />
                <script type="text/javascript">
                    jQuery('select#search_category_srl').live('change', function () {
                        jQuery(this).parents('form').submit();
                    });
                    jQuery('select#col_search').live('change', function(){
                        var searchInput = jQuery('#search_keyword');
                        if (searchInput.val()) jQuery(this).parents('form').submit();
                        else searchInput.focus();
                    });
                </script>
                <select name="search_category_srl" id="search_category_srl">
                    <option>{$lang->categories}</option>
                    <!--@foreach($category_list as $node)-->
					 {@ $val = $node->category }
                    <option value="{$val->category_srl}" <!--@if($category_srl==$val->category_srl)-->selected="selected"<!--@end-->>
					    <!--@for($i = 0; $i < $node->depth; $i++)-->
					    	&nbsp;
						<!--@end-->
						{$val->title}
					</option>
                    <!--@end-->
                </select>

                <select name="col_search" id="col_search">
                    <!--@foreach($column_filters as $val)-->
                    <option value="{$val}" <!--@if($column==$val)-->selected="selected"<!--@end-->>{ucfirst($val)}</option>
                    <!--@end-->
                </select>
                <input name="search_keyword" id="search_keyword" type="text" title="{$lang->cmd_search}" class="iText" value="{$search}"/>
                <span class="btnGray medium"><input type="submit" value="{$lang->cmd_search}" /></span>
            </form>
        </fieldset>
    </div>
    <!-- /listHeader -->

	<include target="AdminProductsList" />

</div>
<!-- /Content -->


<!-- Extension -->
<!--#include("_tool_menu.html")-->
<!-- Extension -->

<!--#include("_tool_footer.html")-->